package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap6 extends OSMap
	{
		public function OSMap6()
		{
			super();
			
			var ground:OSGround = new OSGround(0, 1060, 960, 20, 0, false);
			ground.setNoErosionUp([14, 15, 16, 17, 18]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([47]);
			ground.erode();
			add(ground);
			
			var bouncePillar:OSEntity = new OSEntity(NOTHING, 100, 600); // +30 +20
			bouncePillar.makeGraphic(10, 464, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 220, 600); // +150 + 20
			bouncePillar.makeGraphic(10, 464, 0xff000000);
			addBackground(bouncePillar);
			
			ground = new OSGround(70, 580, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			ground = new OSGround(280, 340, 100, 560, 0, false);
			ground.erode();
			add(ground);
			
			addForeground(new OSPillar(300, 890, 20, 180));
			addForeground(new OSPillar(340, 890, 20, 180));
			
			add(new OSBridge(380, 360, 14, 5, false));
			
			ground = new OSGround(940, 340, 20, 560, 0, false);
			ground.setNoErosionRight([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]);
			ground.erode();
			add(ground);
		}
	}
}
